package com.itstyle.seckill.util.statusflow;

//import cn.gogpay.dcb.mall.common.util.MallEnumUtils;
import com.alibaba.fastjson.annotation.JSONCreator;
import com.fasterxml.jackson.annotation.JsonCreator;

public enum OrderButtonType implements DbEnum<Integer> {
    GO_PAY(1,"去支付"),
    CANCEL_ORDER(2,"取消订单"),
    NOTIFY_SHIP(3, "提醒发货"),
    DELAY_RECEIVE(4, "延长收货"),
    SHOW_EXPRESS(5, "查看物流"),
    SURE_RECEIVE(6, "确认收货"),
    DELETE_ORDER(7, "删除订单"),
    EVALUATE(8, "评价"),
    SHOW_CODE(9,"查看券码"),
    ONCE_MORE(10,"再来一单"),
    INVITE(11, "邀请好友"),
    PAY_JOIN(12,"支付并参团"),
    REFUND_DETAIL(13,"退款详情"),
    SHOW_DETAIL(14,"查看详情"),
    RECOVERY(15,"我要回收"),
    IMMEDIATE_SHIP(16, "立即发货"),
    OPEN_BLIND_BOX(17, "开盲盒"),
    NOTIFY_ORDER(18, "提醒接单"),
    SALE_AFTER(19,"申请售后"),
    DELETE_GROUP(20, "删除团单")
    ;
    private final Integer value;
    private final String name;

    OrderButtonType(Integer value, String name) {
        this.value = value;
        this.name = name;
    }

    @JsonCreator
    @JSONCreator
    public static OrderButtonType create(String value) {
//        return MallEnumUtils.create(values(), value);
        return null;
    }

    @Override
    public Integer getValue() {
        return value;
    }

    public String getName() {
        return name;
    }
}
